package com.miaoplus.swagger.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;

@ApiModel(value = "学生")
public class Student {
    
    @ApiParam(value = "id", required = true)
    private Integer id;
    
    @ApiParam(value = "姓名", required = true)
    private String name;
    
    @ApiParam(value = "性别", required = true)
    private int gender;
    
    @ApiParam(value = "年龄", required = true)
    private int age;
    
    @ApiParam(value = "所在年级", required = true)
    private Grade grade;
    
    public Integer getId() {
        return id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public int getGender() {
        return gender;
    }
    
    public void setGender(int gender) {
        this.gender = gender;
    }
    
    public int getAge() {
        return age;
    }
    
    public void setAge(int age) {
        this.age = age;
    }
    
    public Grade getGrade() {
        return grade;
    }
    
    public void setGrade(Grade grade) {
        this.grade = grade;
    }
}
